<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>联系我们</title>
<style type="text/css">
#biaoge {
	margin-bottom: 30px;
}

#usersName,
#usersEmail,
#usersText,
#usersPhone {
	margin-left: 0px;
	width: 350px;
	height: 40px;
	margin-top: 20px;
}

#usersText {
	overflow: hidden;
	width: 350px;
	font-size: 14px;
	height: 60px;
	line-height: 24px;
	padding: 2px;
}

#submit {
	margin-right: 102px;
}
.container {
	width: 1200px;
	margin: 0 auto;
}
</style>
</head>
<body>
<jsp:include page="/headerServlet"></jsp:include>





<div class="container">
			<div class="main-header container" style="margin-top: 25px;">
				<span style="color: red;font-size: 30px;">在线留言</span>
				<span style="margin-left: 963px;"><a href="">首页</a>&gt;<a href="">在线留言</a></span>
				<hr>
				<div id="biaoge" style="text-align: center;">
					<form action="messagesServlet?method=add" method="post" target="stop">
						<label>
							<span>姓名：</span>
							<input type="text" name="usersName" id="usersName" value="" />
							<span style="color: red;">*</span>
						</label>
						<br>
						<label>
							<span>电话：</span>
							<input type="text" name="usersPhone" id="usersPhone" value="" />
							<span style="color: red;">*</span>
						</label>
						<br>
						<label>
							<span>邮箱：</span>
							<input type="text" name="usersEmail" id="usersEmail" value="" />
							<span style="color: red;">*</span>
						</label>
						<br>
						<label>
							<span style="position: relative;top: 37px;">内容：</span>
							<textarea name="usersText" id="usersText" value=""></textarea>
							<span style="color: red;">*</span>
						</label>
						<br>
						<input type="submit" value="提交" id="submit" style="width: 120px; background: green;height: 38px;margin-top: 15px;"/>
					</form>
					<iframe  name="stop" style="display:none;"></iframe>
				</div>
			</div>
		</div>
		

		
		<jsp:include page="/footerServlet"></jsp:include>
		<script type="text/javascript">
			var gg=document.getElementById("submit");
			gg.onclick=function(){
				alert("留言成功")
				 window.location.reload();
			}
				
		</script>
		
</body>
</html>